﻿using Microsoft.AspNetCore.Hosting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Publicuse.Interface;
using Publicuse.Interface.Extend;

namespace Publicuse.Autofac
{
    /// <summary>
    /// 服务注册实例
    /// </summary>
    public class ServiceContainer
    {
        public IAutofaceInstance autofaceInstance { get; set; }

        public readonly IMySqlSugarService mySqlSugar;

        public readonly IBaseServiceExt baseServiceExt;


        public readonly IWebHostEnvironment webHost;

        /// <summary>
        /// 初始化注入
        /// </summary>
        /// <param name="autofaceInstancec"></param>
        /// <param name="mySqlSugar"></param>
        /// <param name="sqlserverSugar"></param>
        /// <param name="oracleSugar"></param>
        /// <param name="_hostingEnvironment"></param>
        public ServiceContainer(IAutofaceInstance autofaceInstancec, IMySqlSugarService mySqlSugar, IWebHostEnvironment webHost, IBaseServiceExt baseServiceExt)
        {
            this.autofaceInstance = autofaceInstancec;
            this.mySqlSugar = mySqlSugar;
            this.webHost = webHost;
            this.baseServiceExt = baseServiceExt;
        }

    }
}
